package com.travel.Bean;

import lombok.Data;
import org.springframework.data.redis.core.RedisHash;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;

@Data
@Entity(name = "trade")

public class Trade {

   @org.springframework.data.annotation.Id
    @Id
   private String  order_id;       //订单号，对应trecord中的order_id
   private String  trade_on;        //交易号
   private String  trade;       //交易方（支付宝、微信等，以大写首字母表示“ZFB”、“WX”）
   private Date atom_time;      //下单时间
   private Date  trade_time;        //交易时间
   private float  total_amount;     //交易总金额
   private float receipt_amount;    //实际支付金额
   private Integer  refunds;        //退款次数
   private float  retotal_amount;       //剩余金额


}
